package com.hdsx.spring.demo.controller;

import com.hdsx.spring.demo.service.impl.IndexServiceImpl;
import com.hdsx.spring.webservlet.annotation.Autowired;
import com.hdsx.spring.webservlet.annotation.Controller;
import com.hdsx.spring.webservlet.annotation.RequestMapping;

/**
 * @author 占贤银
 * time 2024/8/16 22:48
 * description 生命之灯因热情而点燃，生命之舟因拼搏而前行
 */
@Controller
@RequestMapping("/index")
public class IndexController {

    @Autowired
    private IndexServiceImpl service;

   @RequestMapping("/login")
   public String login() {
       return "大家好，欢迎来到动漫世界，这里只有您想不到得没有您不知道得！";
   }

    @RequestMapping("/logout")
    public String logout() {
        return "<h1 style='color:purple;'>退出登录！</h1>";
    }
}
